home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / Canvas.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  1.4 KB  |  69 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _CANVAS_
  4. #define _CANVAS_
  5.  
  6. #ifndef _CANVASB_
  7. #include "CanvasB.idl"      // base class
  8. #endif
  9.  
  10. #ifdef _PLATFORM_MACINTOSH_
  11.  
  12. //==============================================================================
  13. // Mac OS types used in this interface
  14. //==============================================================================
  15.  
  16. /*
  17. #pragma somemittypes off
  18. */
  19.  
  20. typedef unsigned long GrafPtr;        //# C definition is in <QuickDraw.h>
  21.  
  22. /*
  23. #pragma somemittypes on
  24. */
  25.  
  26. //==============================================================================
  27. // Classes defined in this interface
  28. //==============================================================================
  29.  
  30. interface  ODCanvas;
  31.  
  32. //==============================================================================
  33. // ODCanvas
  34. //==============================================================================
  35.  
  36. interface ODCanvas :  ODBaseCanvas
  37. {
  38.     GrafPtr                GetQDPort( );
  39.     
  40.     ODPlatformCanvas    GetGXViewport( );    //# Really a gxViewport; see <GXTypes.h>
  41.  
  42.  
  43. #ifdef __SOMIDL__
  44.   implementation
  45.   {
  46.     majorversion = 1; minorversion = 0;
  47.         
  48.     releaseorder:
  49.         GetQDPort,
  50.         GetGXViewport,
  51.         reserved1;
  52.     
  53.     override:
  54.         HasPlatformCanvas,
  55.         GetPlatformCanvas,
  56.         SetPlatformCanvas,
  57.         Invalidate,
  58.         Validate;
  59.  
  60.     functionprefix = ODCanvas__;
  61.         
  62.   };
  63. #endif
  64. };
  65.  
  66. #endif /*_PLATFORM_MACINTOSH_*/
  67.  
  68. #endif //# _CANVAS_
  69.